package com.phone.store.service;

import com.phone.store.dto.OrderDTO;
import com.phone.store.vo.OrderDetailVO;

/**
 * @author fangyu
 * @version v1.0.0
 * @date 2020/7/31 10:26 下午
 */
public interface OrderService {

    /**
     * 创建订单
     *
     * @param orderDTO 订单传输对象
     * @return OrderDTO
     */
    OrderDTO createOrder(OrderDTO orderDTO);

    /**
     * 查找订单
     *
     * @param orderId 订单id
     * @return OrderDetailVO
     */
    OrderDetailVO findOrderDetailByOrderId(String orderId);


    /**
     * 支付
     * @param orderId 订单id
     * @return String
     */
    String pay(String orderId);

}
